package com.leon.alishop.model;

import java.util.Date;

public class AttrInfo {

	private Integer id;
	
	private String attrName;
	
	private Integer attrType;
	
	private Integer taobaoId;
	
	private Date createDate;
	
	private Date modifyDate;
	
	public AttrInfo() {
		super();
	}

	public AttrInfo(Integer id, String attrName, Integer attrType,
			Integer taobaoId, Date createDate, Date modifyDate) {
		super();
		this.id = id;
		this.attrName = attrName;
		this.attrType = attrType;
		this.taobaoId = taobaoId;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAttrName() {
		return attrName;
	}

	public void setAttrName(String attrName) {
		this.attrName = attrName;
	}

	public Integer getAttrType() {
		return attrType;
	}

	public void setAttrType(Integer attrType) {
		this.attrType = attrType;
	}

	public Integer getTaobaoId() {
		return taobaoId;
	}

	public void setTaobaoId(Integer taobaoId) {
		this.taobaoId = taobaoId;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((attrName == null) ? 0 : attrName.hashCode());
		result = prime * result
				+ ((attrType == null) ? 0 : attrType.hashCode());
		result = prime * result
				+ ((createDate == null) ? 0 : createDate.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((modifyDate == null) ? 0 : modifyDate.hashCode());
		result = prime * result
				+ ((taobaoId == null) ? 0 : taobaoId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AttrInfo other = (AttrInfo) obj;
		if (attrName == null) {
			if (other.attrName != null)
				return false;
		} else if (!attrName.equals(other.attrName))
			return false;
		if (attrType == null) {
			if (other.attrType != null)
				return false;
		} else if (!attrType.equals(other.attrType))
			return false;
		if (createDate == null) {
			if (other.createDate != null)
				return false;
		} else if (!createDate.equals(other.createDate))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (modifyDate == null) {
			if (other.modifyDate != null)
				return false;
		} else if (!modifyDate.equals(other.modifyDate))
			return false;
		if (taobaoId == null) {
			if (other.taobaoId != null)
				return false;
		} else if (!taobaoId.equals(other.taobaoId))
			return false;
		return true;
	}
	
	
	
}
